package User;

import IoCz.IoCz;
import IoCz.IoFind;
import IoCz.IoBorw;
import IoCz.IoReturn;
import IoCz.IoShow;
import IoCz.IoEx;

import java.util.Scanner;

public class NorUser extends User{
    public int menu(){
        System.out.println("=====用户菜单=====");
        System.out.println("请选择操作");
        System.out.println("1.查找图书");
        System.out.println("2.借阅图书");
        System.out.println("3.归还图书");
        System.out.println("0.退出系统");
        Scanner scanner = new Scanner(System.in);
        int tmp = scanner.nextInt();
        return tmp;
    }
    public NorUser(String name){
        super(name);
        System.out.println("恭喜 "+this.name+" 登录");
        this.ios = new IoCz[]{
                new IoEx(),
                new IoFind(),
                new IoBorw(),
                new IoReturn(),
                new IoShow()
        };
    }
}
